only send the md5 custom checksum header when server expects it
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 31 Mar 2025 09:59:37 +0000 (11:59 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Thu, 10 Apr 2025 09:31:04 +0000 (09:31 +0000)
commitec0e2d6ce01e2c7a7999ecda7fd3ae0f97790a38
tree0515a2b17da290219ad38872657346f9cfced27c
parent89a0af11fa0a8e60ca237d98d2fd4c4bc0e510fe
only send the md5 custom checksum header when server expects it

server before 32.0.0 release expects a custom header with an MD5
checksum during bulk upload

the header name is: X-File-MD5

see https://github.com/nextcloud/server/pull/51729

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/account.cpp
src/libsync/account.h
src/libsync/bulkpropagatorjob.cpp